/**
 * 
 */
package de.hellinger.yacc.datatypes;

/**
 * This enum implements the choices for the gender of a person
 * 
 * @author CHH
 *
 */
public enum Gender {

	UNKNOWN(null),
	MALE ("m"),
	FEMALE("f"),
	OTHER ("o");
	
	/**
	 * The representation in the ui and database
	 */
	private String representation;
	
	/**
	 * 
	 * @param representation
	 */
	Gender(String representation){
		this.representation = representation;
	}

	/**
	 * 
	 * @return
	 */
	public String getRepresentation() {
		return representation;
	}
	
	/**
	 * 
	 */
	public String toString(){
		return this.getRepresentation();
	}
	
}
